package day6;

import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
public class DateTest {
    public static void main(String[] args) {
        Date d=new Date(0);
        System.out.println(d);
        System.out.println("年："+d.getYear());
        System.out.println("月："+d.getMonth());
        System.out.println("天："+d.getDate());
        System.out.println("周几："+d.getDay());
        System.out.println("小时："+d.getHours());

    }
}
